package novel.front.novellist.pojo;

import java.math.BigDecimal;

/**
 * Created by sutong on 2017/12/3.
 */
public class WholeData {
    /**
     * 订单总数
     */
    private Integer total_order_count;
    /**
     * 自营-订单总数
     */
    private Integer self_order_count;
    /**
     * 代理-订单总数
     */
    private Integer agent_order_count;
    /**
     * 交易总额
     */
    private BigDecimal total_trade_amount;
    /**
     * 自营-交易总额
     */
    private BigDecimal self_trade_amount;
    /**
     * 代理-交易总额
     */
    private BigDecimal agent_trade_amount;
    /**
     * 会员总数
     */
    private Integer member_total_count;
    /**
     * 个人-会员总数
     */
    private Integer member_personal_count;
    /**
     * 企业-会员总数
     */
    private Integer member_enterprise_count;
    /**
     * 经销商-会员总数
     */
    private Integer member_dealer_count;
    /**
     * 零售商-会员总数
     */
    private Integer member_retailer_count;
    /**
     * 商品总数
     */
    private Integer goods_total_count;
    /**
     * 上架-商品总数
     */
    private Integer goods_onshelves_count;
    /**
     * 店铺总数
     */
    private Integer shop_total_count;


    public Integer getTotal_order_count() {
        //return total_order_count;
        return self_order_count+agent_order_count;
    }
    public void setTotal_order_count(Integer total_order_count) {
        this.total_order_count = total_order_count;
    }
    public Integer getSelf_order_count() {
        return self_order_count;
    }
    public void setSelf_order_count(Integer self_order_count) {
        this.self_order_count = self_order_count;
    }
    public Integer getAgent_order_count() {
        return agent_order_count;
    }
    public void setAgent_order_count(Integer agent_order_count) {
        this.agent_order_count = agent_order_count;
    }
    public BigDecimal getTotal_trade_amount() {
        //return total_trade_amount;
        return self_trade_amount.add(agent_trade_amount);
    }
    public void setTotal_trade_amount(BigDecimal total_trade_amount) {
        this.total_trade_amount = total_trade_amount;
    }
    public BigDecimal getSelf_trade_amount() {
        return self_trade_amount;
    }
    public void setSelf_trade_amount(BigDecimal self_trade_amount) {
        this.self_trade_amount = self_trade_amount;
    }
    public BigDecimal getAgent_trade_amount() {
        return agent_trade_amount;
    }
    public void setAgent_trade_amount(BigDecimal agent_trade_amount) {
        this.agent_trade_amount = agent_trade_amount;
    }
    public Integer getMember_total_count() {
        //return member_total_count;
        return member_personal_count+member_enterprise_count+member_dealer_count+member_retailer_count;
    }
    public void setMember_total_count(Integer member_total_count) {
        this.member_total_count = member_total_count;
    }
    public Integer getMember_personal_count() {
        return member_personal_count;
    }
    public void setMember_personal_count(Integer member_personal_count) {
        this.member_personal_count = member_personal_count;
    }
    public Integer getMember_enterprise_count() {
        return member_enterprise_count;
    }
    public void setMember_enterprise_count(Integer member_enterprise_count) {
        this.member_enterprise_count = member_enterprise_count;
    }
    public Integer getMember_dealer_count() {
        return member_dealer_count;
    }
    public void setMember_dealer_count(Integer member_dealer_count) {
        this.member_dealer_count = member_dealer_count;
    }
    public Integer getMember_retailer_count() {
        return member_retailer_count;
    }
    public void setMember_retailer_count(Integer member_retailer_count) {
        this.member_retailer_count = member_retailer_count;
    }
    public Integer getGoods_onshelves_count() {
        return goods_onshelves_count;
    }
    public void setGoods_onshelves_count(Integer goods_onshelves_count) {
        this.goods_onshelves_count = goods_onshelves_count;
    }
    public Integer getGoods_total_count() {
        return goods_total_count;
    }
    public void setGoods_total_count(Integer goods_total_count) {
        this.goods_total_count = goods_total_count;
    }
    public Integer getShop_total_count() {
        return shop_total_count;
    }
    public void setShop_total_count(Integer shop_total_count) {
        this.shop_total_count = shop_total_count;
    }
}
